home *** CD-ROM | disk | FTP | other *** search
/ The Scorpion King Cardz / The Scorpion King Cardz - Disc 4 - Memnon.iso / pc / assets / scorp_game_win.dxr / 00015_go the frame.ls < prev    next >
Encoding:
Text File  |  2002-03-21  |  679 b   |  25 lines

  1. global gScreenSaverInstalled, gTotalScreenInstalls, gCardID
  2.  
  3. on exitFrame me
  4.   if gScreenSaverInstalled = 0 then
  5.     if the timer > 500 then
  6.       go("error")
  7.     else
  8.       go("install_loop")
  9.     end if
  10.   else
  11.     decryptIni("sreg.ini")
  12.     gTotalScreenInstalls = gTotalScreenInstalls + 1
  13.     iniWrite = setIni("sreg.ini", gCardID, "gTotalScreenInstalls", string(gTotalScreenInstalls))
  14.     if dosGetLastError() <> 0 then
  15.       put "Ini Error:" & dosGetLastError() & " gTotalScreenInstalls from game_win"
  16.     end if
  17.     encryptIni("sreg.ini")
  18.     if the platform contains "mac" then
  19.       go("install_success_mac")
  20.     else
  21.       go("install_success_pc")
  22.     end if
  23.   end if
  24. end
  25.